<?=form_open('matches/matchgroup')?>
<select id="matchgroup" name="matchgroup" onchange="submit()">
  <option value="matches"><?=lang('please_select')?></option>
  <option<?=isSelected('current', $matchgroup);?> value="matches"><?=lang('current_matches')?></option>
  <option<?=isSelected('all', $matchgroup);?> value="matches/all"><?=lang('all_matches')?></option>
  <?php $i=0; foreach($matchgroups as $group): ?>
	<option<?=isSelected($group, $matchgroup);?> value="matches/day/<?=$group?>"><? printf(lang('matchgroup_type'), $group);?></option>
  <?php endforeach; ?>
</select>
<noscript><input type="submit" value="Los" /></noscript>
<?=form_close();?>